<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('UPS维修记录单新增及修改')" />
	<th:block th:include="include :: businessCSS" />
	<style type="text/css">
		.layui-table[lay-size="sm"] .layui-form-switch{margin:0;left:0}
	</style>
</head>
<body class="no-skin">
<div class="main-container" id="main-container">
	<div class="main-content">
	<form class="layui-form head-form">
	    <div class="north">
            <th:block th:include="include :: business_btn" />
	        <th:block th:include="include :: business_tpl('top')" />
<!-- 			定制内容开始 -->
			<!-- 静态表格 -->
		    <div style="margin:10px">
			  	<table class="layui-table" lay-size="sm">
			    <colgroup>
			      <col width="12.5%">
			      <col width="8%">
			      <col width="8%">
			      <col width="10%">
			      <col width="10%">
			      <col width="10%">
			      <col width="10%">
			      <col width="10%">
			      <col width="21.5%">
			    </colgroup>
			    <tbody>
		    	  <tr>
			        <td class="table-title">故障描述</td>
			        <td colspan="8"><input type="text" id="vGzMs" name="vGzMs" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title">维修情况</td>
			        <td colspan="8"><input type="text" id="vWxQk" name="vWxQk" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title">整机检查</td>
			        <td colspan="8">
				        <input type="hidden" name="bLjx" value="false">
				        <input type="hidden" name="bHj" value="false">
				        <input type="hidden" name="bZx" value="false">
				        <input type="hidden" name="bWl" value="false">
			        	<input type="checkbox" name="bLjx" id="bLjx" value="true" title="接线正确及连接牢固">
			        	<input type="checkbox" name="bHj" id="bHj" value="true" title="焊接正确">
			        	<input type="checkbox" name="bZx" id="bZx" value="true" title="最终整线 ">
			        	<input type="checkbox" name="bWl" id="bWl" value="true" title="物料安装坚固">
			        </td>
			      </tr>
				  <tr>
			        <td class="table-title" rowspan="11">UPS维修后通电测试</td>
			        <td class="table-title" rowspan="3" colspan="2">交流输入</td>
			        <td class="table-title text_r">A相电压：</td>
			        <td><input type="text" id="fAxDyJl" name="fAxDyJl" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">B相电压：</td>
			        <td><input type="text" id="fBxDyJl" name="fBxDyJl" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">C相电压：</td>
			        <td><input type="text" id="fCxDyJl" name="fCxDyJl" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title text_r">A相电流：</td>
			        <td><input type="text" id="fAxDlJl" name="fAxDlJl" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">B相电流：</td>
			        <td><input type="text" id="fBxDlJl" name="fBxDlJl" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">C相电流：</td>
			        <td><input type="text" id="fCxDlJl" name="fCxDlJl" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title text_r">A相频率：</td>
			        <td><input type="text" id="fAxPlJl" name="fAxPlJl" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">B相频率：</td>
			        <td><input type="text" id="fBxPlJl" name="fBxPlJl" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">C相频率：</td>
			        <td><input type="text" id="fCxPlJl" name="fCxPlJl" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title" colspan="2">直流电源</td>
			        <td class="table-title text_r">充电电压：</td>
			        <td colspan="3"><input type="text" id="fCdDy" name="fCdDy" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">BUS电压：</td>
			        <td><input type="text" id="fBusDy" name="fBusDy" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title" rowspan="6">输出</td>
			        <td class="table-title" rowspan="3">市电</td>
			        <td class="table-title text_r">A相电压：</td>
			        <td><input type="text" id="fAxDySd" name="fAxDySd" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">B相电压：</td>
			        <td><input type="text" id="fBxDySd" name="fBxDySd" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">C相电压：</td>
			        <td><input type="text" id="fCxDySd" name="fCxDySd" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title text_r">A相电流：</td>
			        <td><input type="text" id="fAxDlSd" name="fAxDlSd" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">B相电流：</td>
			        <td><input type="text" id="fBxDlSd" name="fBxDlSd" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">C相电流：</td>
			        <td><input type="text" id="fCxDlSd" name="fCxDlSd" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title text_r">A相频率：</td>
			        <td><input type="text" id="fAxPlSd" name="fAxPlSd" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">B相频率：</td>
			        <td><input type="text" id="fBxPlSd" name="fBxPlSd" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">C相频率：</td>
			        <td><input type="text" id="fCxPlSd" name="fCxPlSd" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title" rowspan="3">电池</td>
			        <td class="table-title text_r">A相电压：</td>
			        <td><input type="text" id="fAxDyDc" name="fAxDyDc" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">B相电压：</td>
			        <td><input type="text" id="fBxDyDc" name="fBxDyDc" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">C相电压：</td>
			        <td><input type="text" id="fCxDyDc" name="fCxDyDc" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title text_r">A相电流：</td>
			        <td><input type="text" id="fAxDlDc" name="fAxDlDc" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">B相电流：</td>
			        <td><input type="text" id="fBxDlDc" name="fBxDlDc" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">C相电流：</td>
			        <td><input type="text" id="fCxDlDc" name="fCxDlDc" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title text_r">A相频率：</td>
			        <td><input type="text" id="fAxPlDc" name="fAxPlDc" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">B相频率：</td>
			        <td><input type="text" id="fBxPlDc" name="fBxPlDc" autocomplete="off" class="layui-input"></td>
			        <td class="table-title text_r">C相频率：</td>
			        <td><input type="text" id="fCxPlDc" name="fCxPlDc" autocomplete="off" class="layui-input"></td>
			      </tr>
			      <tr>
			        <td class="table-title" colspan="4">面板显示检查：
			        	<input type="hidden" name="bMb" value="false"><input type="checkbox" value="true" lay-skin="switch" lay-text="OK|NG" name="bMb" id="bMb" >
			        </td>
			        <td class="table-title" colspan="4">风扇运转检查：
			        	<input type="hidden" name="bFs" value="false"><input type="checkbox" value="true" lay-skin="switch" lay-text="OK|NG" name="bFs" id="bFs" >
			        </td>
			      </tr>
			      <tr>
			        <td class="table-title">维修结论</td>
			        <td colspan="8"><input type="text" id="vWxJl" name="vWxJl" autocomplete="off" class="layui-input"></td>
			      </tr>
			    </tbody>
			  </table>
		  	</div>
		  </div>
<!-- 	定制内容结束 -->
	   	<th:block th:include="include :: pageFooter" /> 
        </form>
	</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: businessJS" />
<th:block th:include="include :: inlineJS" />
<script type="text/javascript">
var $,layer,form,laydate,element;//定义layui模块
var nid = $("#nid").val(),noTable;//定义全局参数
layui.use(['laydate','form','layer','jquery','util','element'], function () {
 	$ = layui.$,layer = layui.layer,form = layui.form,laydate = layui.laydate,util = layui.util,element=layui.element;
 	beforeInit();//表单初始化之前的动作集合
 	layui.element.render();
 	$.get("/business/repairrecord/listbynid?nid="+nid,function(res){
 		noTable=res.data;
	});
	$.each(t_fields,function(v,k){//初始赋值
 		if(k.fieldType=='bit'){
 			if(k.fieldContent)$('#'+k.fields).attr('checked','checked');
 			if(gridColumns.readOnly)$('#'+k.fields).attr('disabled','disabled');
 		}else $('#'+k.fields).val(k.fieldContent);
 	})
 	form.render();
 	if(gridColumns.readOnly){//流程结束后静态表格变为不可编辑
 	 	$('table input').attr('readonly','readonly');
		$('table .canntEdit').removeClass('canntEdit');
 	}
})
</script>
</body>
</html>